package org.finegold.core.discern.service;

import lombok.SneakyThrows;
import org.finegold.core.discern.enums.CustomType;
import org.finegold.core.discern.enums.IdType;
import org.finegold.core.discern.enums.MethodType;
import org.finegold.core.http.ResponseSpec;
import org.finegold.core.tool.api.R;

import java.util.function.Consumer;

/**
 * <B>Description:</B> TODO <br>
 *
 * @Author QinXueFeng
 * @Date 2020/9/10 14:45
 * @Version 1.0.10
 * @VersionList <pre>
 *    版本        修改人        修改日期        修改描述
 *    ------------------------------------------------------------
 *    1.0.10       QinXueFeng        2020/9/10 14:45        create
 *    ------------------------------------------------------------
 * </pre>
 */
public interface IDiscernApi {
	String img_base64(String path);

	@SneakyThrows
	void asyncDiscern(String base64, MethodType methodType, IdType idType, CustomType customType, Consumer<ResponseSpec> consumer);

	@SneakyThrows
	R<String> Discern(String base64, MethodType methodType, IdType idType, CustomType customType);
}
